package com.recharge.core.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author reagan
 * @since 2020-08-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("business_goods")
public class GoodsEntity implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 商品组id
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String groupId;

    /**
     * 商品编号
     */
    private Integer goodsNo;

    /**
     * 商品标题
     */
    private String title;

    /**
     * 商品面额
     */
    private Long denomination;


    /**
     * 1 移动2 电信3 联通
            
     */
    private Integer serviceProvider;

    /**
     * 1.全国 2.省 3.城市
     */
    private Integer regionType;

    /**
     * 省编码
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String provinceCode;

    /**
     * 城市编码
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String cityCode;

    /**
     * 是否同步供货 0.否 1.是
     */
    private Integer isSyncSuppy;

    /**
     * 商品库存量
     */
    private Integer stock;

    /**
     * 商品类型
     */
    private Integer type;

    /**
     * 商品排序权重 0最小 10最大
     */
    private Integer priority;

    private Date createDate;

    private Date modifiDate;

    private String creator;

    private String modifier;

    /**
     * 0 下架 1 上架\n            
     */
    private Integer status;

    /**
     * -1 删除 1 有效
     */
    private Integer isDelete;

    @Version
    private Long version;
}
